package cn.rongdao.jrkabao.model.deposit;

import com.mifengkong.frtools.http.request.HttpFunction;
import com.mifengkong.frtools.util.FRString;

import java.util.List;

import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2017/8/1
 */

public class SelectCardFromKamaoModel extends BaseKaMaoModel {
    public static SelectCardFromKamaoModel getInstance() {
        return getPresent(SelectCardFromKamaoModel.class);
    }

    public void execute(String id, Observer<List<Void>> observer) {
        addParamStrings("id", FRString.valueOf(id));
        Observable<List<Void>> observable = mServletApi.selectCardFromKamao(mParams).map(new HttpFunction<List<Void>>());
        toSubscribe(observable, observer);
    }
}